package com.bank.bank.account.client;

import com.bank.bank.common.base.response.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

//调用的是transaction openFeign支持直接调用
@FeignClient(value="transaction-service")
public interface TransactionClient {
    @GetMapping("/api/transactions/list/{accountId}")
    JsonResult getAccountTrans(@PathVariable Integer accountId);
}
